package com.lagou.es.respository;

import com.lagou.common.pojo.Products;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ProductRepository extends ElasticsearchRepository<Products,Long> {

    /**
     * 根据价格区间查询
     * @param from
     * @param to
     * @return
     */
    List<Products> findByPriceBetween(Double from, Double to);

}
